import request from "@/router/axios";
import { baseUrl } from "@/config/env";

// 添加学期
export function addTerm(data) {
  return request({
    url: baseUrl + "/pc/term",
    method: "post",
    data
  });
}

//获取学期
export function getTerm(data) {
  return request({
    url: baseUrl + "/pc/term",
    method: "get",
    params: data
  });
}

//删除学期
export function deleteTerm(data) {
  return request({
    url: baseUrl + "/pc/term",
    method: "delete",
    data
  });
}

//更新学期
export function updateTerm(data) {
  return request({
    url: baseUrl + "/pc/term",
    method: "put",
    data
  });
}
